package at.codejedi.sto.controller.combat;

import at.codejedi.sto.controller.lazy.LazyViewController;
import at.codejedi.sto.gui.combat.PlayerDetailView;
import at.codejedi.sto.model.combat.IPlayer;

public class PlayerController extends LazyViewController<PlayerDetailView>
		implements IDetailController {

	private IPlayer player;

	public PlayerController(IPlayer player) {
		super();
		this.player = player;
	}

	@Override
	public PlayerDetailView createLazyView() {
		return new PlayerDetailView();
	}

	@Override
	public void initialLoaded() {
		getView().displayPlayer(player);
	}

}
